/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.easoft.code.pos.ui.leftoptions.impl;

import com.easoft.code.pos.data.pojos.DocumentoOper;
import com.easoft.code.pos.ui.beans.FormDataEntry;
import com.easoft.code.pos.ui.beans.FormDataEntryManager;
import com.easoft.code.pos.ui.controllers.impl.InventoryMovsControllerImpl;
import com.easoft.code.pos.ui.leftoptions.ComponentBuilder;
import java.util.Arrays;
import javax.swing.JPanel;

/**
 *
 * @author Eliu
 */
public class OperacionesInvImpl implements ComponentBuilder {

    private final FormDataEntryManager dataEntryMan;

    public OperacionesInvImpl() {
        this.dataEntryMan = new FormDataEntryManager(
                Arrays.asList(
                        new FormDataEntry(
                                new InventoryMovsControllerImpl(
                                        Arrays.asList(new String[]{"ID", "Numero", "Serie", "Operacion", "Persona", "Fecha", "Estado"}),
                                        Arrays.asList(new String[]{"Id", "Numero", "Serie", "DoctoOperTipo", "PersonaId", "Fecha", "Estado"}),
                                        DocumentoOper.class), "Operaciones Inventarios")), "operations.png");
    }

    @Override
    public JPanel build() {
        return dataEntryMan;
    }

    @Override
    public String getName() {
        return "Operaciones Inventario";
    }

}
